package org.system.core.mapper.system;

import org.apache.ibatis.annotations.Mapper;
import org.system.core.domain.entity.SysRole;

import java.util.List;

/**
* @author baoRoot
* @description 针对表【sys_role(角色信息表)】的数据库操作Mapper
* @createDate 2024-11-05 14:17:49
* @Entity org.system.core.domain.entity.SysRole
*/
@Mapper
public interface SysRoleMapper {
    List<SysRole> selectRolePermissionByUserId(Long userId);
    List<SysRole> selectRoleList(SysRole role);
    SysRole selectRoleById(Long roleId);
    SysRole checkRoleNameUnique(String roleName);
    SysRole checkRoleKeyUnique(String roleKey);
    int insertRole(SysRole role);
    int updateRole(SysRole role);
    int deleteRoleByIds(Long[] roleIds);
}




